package com.itheima.listener;

import org.apache.rocketmq.spring.annotation.MessageModel;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

//广播模式
@Component
@RocketMQMessageListener(consumerGroup = "register-group",topic = "tanhua-register" ,messageModel = MessageModel.BROADCASTING)
public class SmsListener implements RocketMQListener<String> {
    @Override
    public void onMessage(String message) {

    }
}
